package jsen.tool.ddd.demo.domain.brand;

import jsen.tool.ddd.adapter.infrastructure.specification.ISpecification;
import jsen.tool.ddd.domain.Repository;

import java.util.List;

/**
 * @author jsen
 * @date 2021/10/6
 */
@Repository
public interface BrandRepo {

    public Brand loadById(Long id);

    /**
     * 考虑ISpecification是否合适
     */
    public List<Brand> query(ISpecification<Brand> specification);
}
